﻿using System;
using System.Collections.Generic;
using System.Text;
using jade.core;

namespace MarketSimulator.Utils.Maps
{
    /// <summary>
    /// Storage Facility
    /// </summary>
    public class StorageFacility
    {
        #region Members
        
        /// <summary>
        /// Location of the storage
        /// </summary>
        public long Location { get; set; }

        /// <summary>
        /// Total capacity of the Storage
        /// </summary>
        public long TotalCapacity { get; set; }

        /// <summary>
        /// Cost per unit
        /// </summary>
        public double CostPerUnit { get; set; }

        /// <summary>
        /// Current Capacity
        /// </summary>
        public long OccupiedCapacity { get; set; }

        /// <summary>
        /// Remaining capacity
        /// </summary>
        public long RemainingCapacity 
        { 
            get
            {
                return TotalCapacity - OccupiedCapacity;
            }
        }

        #endregion
    }
}
